package com.groupbuying.customerconsumer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Author gxy
 * @Description 调用系统配置中心
 * @Date 2019/4/11 16:12
 **/

@Service
@FeignClient("service-sysconfig")
public interface SysconfigFeign {
    // 用户中心-用户id
    @RequestMapping(value = "/common/customer/getCustomerId", method = RequestMethod.GET)
    String getCustomerID();

    @RequestMapping(value = "/api/segment/get/leaf", method = RequestMethod.GET)
    String getUuidByLeaf();
    /**
     * 通过应用名称获取配置中心支付宝的配置参数
     *
     * @Author Vincentxin
     * @Date 2019-08-16 10:55
     * @param applicationName
     * @return java.util.Map<java.lang.String,java.lang.String>
     **/
    @RequestMapping(value = "/sysconfigAlipayMessage/getByAppliName")
    Map<String,String> getByAppliName(@RequestParam("applicationName") String applicationName);
}
